package com.cqc.manage.repositories;


import com.cqc.manage.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface RoleRepositories extends JpaRepository<Role,String> , JpaSpecificationExecutor<Role> {

    /**
     * 根据RoleId查询
     * @param id
     * @return
     */
    Role findRoleByRoleId(String id);

    /**
     * 根据roleName查询
     * @param roleName
     * @return
     */
    Role findRoleByRoleName(String roleName);
}
